package com.example.human_resource_management.mapper;

import com.example.human_resource_management.entry.po.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* @author Lenovo
* @description 针对表【user】的数据库操作Mapper
* @createDate 2025-06-09 08:35:45
* @Entity com.example.human_resource_management.entry.po.User
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("SELECT * FROM user WHERE username = #{username} AND password = #{password}")
    User findUserByUsernameAndPassword(String username, String password);
}




